package cn01;

import java.util.Scanner;

public class test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String s = sc.nextLine();

        StringBuilder sb  = new StringBuilder(s);
        sb.reverse();
        String s1 = sb.toString();
        System.out.println("反转后的字符串为："+"\n"+ s1);

    }
}
